from splinter import Browser
import time
browser = Browser()

browser.visit('https://www.xiaomapan.com/#/')

browser.find_by_xpath('//input[@class="input"]').value = "Selenium"
time.sleep(3)  # 休眠3秒browser.quit()
button = browser.find_by_xpath('//span[@class="search-button"]')
time.sleep(3)  # 休眠3秒browser.quit()
button.click()
# https://www.xiaomapan.com/#/main/search?keyword=%E7%9A%84%E7%9A%84%E7%9A%84%E7%8E%B0%E5%9C%A8
if browser.is_text_present('splinter.readthedocs'):
    print ("Yes, the official website was found!")
else:
    print ("No, it wasn't found... We need to improve our SEO techniques")

browser.quit()